/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.coreprinciples.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.assignment2.coreprinciples.PersonInterface;
import za.ac.cput.assignment2.coreprinciples.student.Student;

/**
 *
 * @author yandiswa
 */
@Configurable
public class PersonConfig {
    @Bean(name = "old person")
    public PersonInterface psn()
    {
        return new Student();
    }
}
